package com.qy.service.impl;

import com.qy.dao.MessageMapper;
import com.qy.model.Message;
import com.qy.service.MessageService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class MessageServiceImpl extends AbstractService<Message> implements MessageService {
    @Resource
    private MessageMapper qyMessageMapper;

    @Override
    public List<Message> selectMessageByUser_id(Message message) {
        return qyMessageMapper.selectMessageByUser_id(message);
    }

    @Override
    public List<Map> messageList() {
        return qyMessageMapper.messageList();
    }

    @Override
    public void seeMessage(Message message) {
        qyMessageMapper.seeMessage(message);
    }

    @Override
    public Integer selectUnreadMessageNumber(Message message) {
        return qyMessageMapper.selectUnreadMessageNumber(message);
    }
}
